<template>
  <!-- <page-wrap :show-top="false" hide-tab bg-color="#ff0000" back title=" "> -->

  <view class="wrapper">
    <web-view :webview-styles="webviewStyles" :src="srcWebView"></web-view>
  </view>
  <!-- </page-wrap> -->
</template>

<script>
export default {
  data() {
    return {
      webviewStyles: {
        progress: {
          color: "#FF3333",
        },
        backgroundColor: "#00ff00",
        title: "一览就业机",
      },
      personId: uni.getStorageSync("person-id").slice(2) || "",
      id: "",
      title: "",
      srcWebView: "",

      //http://yl1001-video.yl1001.com/uploads/ios/2022/11/30/2G6Z7XW130L281ZNW8VH1BHN0U8BZ115_cf.mp4?_upt=475d674b1687571862
      //srcWebView: "https://yl1001-video.yl1001.com/uploads/ios/2022/11/30/2G6Z7XW130L281ZNW8VH1BHN0U8BZ115_cf.mp4?_upt=475d674b1687571862"
    };
  },
  onLoad: function (option) {
    console.log(option);
    this.title = option.title;
    this.srcWebView = decodeURIComponent(option.url).replace(
      "http://",
      "https://"
    );
    console.log(this.srcWebView, "---------------------title", this.title);
    uni.setNavigationBarTitle({
      title: this.title,
    });
    uni.setNavigationBarColor({
      frontColor: "#000000",
      backgroundColor: "#DFE0E6",
    });
  },
};
</script>

<style lang="scss" scoped>
.wrapper {
  min-height: 100vh;
}
</style>
